package cn.taichoo.server.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import cn.taichoo.server.mapper.UserRelationMapper;
import cn.taichoo.server.domain.UserRelationEntity;
import cn.taichoo.server.service.IUserRelationService;

import javax.annotation.Resource;

/**
 * 用户和业务关联关系Service业务层处理
 *
 * @author Wuzh
 * @date 2025-03-17
 */
@Service
public class UserRelationServiceImpl extends ServiceImpl<UserRelationMapper, UserRelationEntity> implements IUserRelationService {

    @Resource
    private UserRelationMapper userRelationMapper;

    /**
     * 查询用户和业务关联关系
     *
     * @param id 用户和业务关联关系主键
     * @return 用户和业务关联关系
     */
    @Override
    public UserRelationEntity selectUserRelationEntityById(Long id) {
        return userRelationMapper.selectUserRelationEntityById(id);
    }

    /**
     * 查询用户和业务关联关系列表
     *
     * @param userRelationEntity 用户和业务关联关系
     * @return 用户和业务关联关系
     */
    @Override
    public List<UserRelationEntity> selectUserRelationEntityList(UserRelationEntity userRelationEntity) {
        return userRelationMapper.selectUserRelationEntityList(userRelationEntity);
    }

}
